package service;

import com.github.pagehelper.PageInfo;
import entity.Customer;
import entity.LayRequest;
import entity.Role;

import java.util.List;
import java.util.Map;

public interface CustomerService {
      int insert(Customer customer);
      List<Customer> selectAll();
      Customer selectById(Integer id);

      boolean delete(Integer id);
      boolean update(Customer customer);
      PageInfo<Customer> selectByPage(Map<String,Object> map);
      PageInfo<Customer> selectByPage(LayRequest layRequest);
      boolean updateHeadPic(Customer customer);
      int batchDelete(Integer[] ids);
}
